package com.da.javatest.demo.basic;

/**
 * @Auther: chenlida
 * @Date: 2018/11/5 10:06
 * @Description:
 */
public class TransmitTest {
    public void test1(int i) {
        i += 1;
    }

    public void test2(String s) {
        s += " test";
    }

    public void test3(StringBuilder s) {
        s.append(" test");
    }

    public static void main(String[] args) {
        TransmitTest transmitTest = new TransmitTest();
        int i = 1;
        String s = "s";
        StringBuilder sb = new StringBuilder("sb");
        System.out.println(i);
        System.out.println(s);
        System.out.println(sb);
        transmitTest.test1(i);
        transmitTest.test2(s);
        transmitTest.test3(sb);
        System.out.println(i);
        System.out.println(s);
        System.out.println(sb);
    }
}
